package com.elai.baseconfig.domain;

import com.elai.common.annotation.Excel;
import com.elai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 全局触达配置对象 channel_config
 * 
 * @author elai
 * @date 2021-08-15
 */
public class ChannelConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 分类编码 */
    @Excel(name = "分类编码")
    private String typeCode;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String typeName;

    /** 时间 */
    @Excel(name = "时间")
    private Long timeValue;

    /** 时间类型 */
    @Excel(name = "时间类型")
    private String timeUnit;

    /** 限制数量 */
    @Excel(name = "限制数量")
    private Long limitNum;

    /** 是否限制 */
    @Excel(name = "是否限制")
    private String limitFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTimeValue(Long timeValue) 
    {
        this.timeValue = timeValue;
    }

    public Long getTimeValue() 
    {
        return timeValue;
    }
    public void setTimeUnit(String timeUnit) 
    {
        this.timeUnit = timeUnit;
    }

    public String getTimeUnit() 
    {
        return timeUnit;
    }
    public void setLimitNum(Long limitNum) 
    {
        this.limitNum = limitNum;
    }

    public Long getLimitNum() 
    {
        return limitNum;
    }
    public void setLimitFlag(String limitFlag) 
    {
        this.limitFlag = limitFlag;
    }

    public String getLimitFlag() 
    {
        return limitFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("timeValue", getTimeValue())
            .append("timeUnit", getTimeUnit())
            .append("limitNum", getLimitNum())
            .append("limitFlag", getLimitFlag())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
